package com.example.spinning.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

/**
 * @author bayernxmt
 * @create 2020-07-19-18:02
 */
public class Spooling {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String batch_no;
    private String name;
    private String workshop;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Timestamp date;
    private String machine_type;
    private Float spun_yarn_num;
    private Integer winding_speed;
    private String spun_yarn_num_setting;
    private Float diameter_plus;
    private Float diameter_minus;
    private Float thinner_num;
    private Float thicker_num;
    private Integer diff_length;
    private Integer tension;

    @Override
    public String toString() {
        return "Spooling{" +
                "id=" + id +
                ", batch_no='" + batch_no + '\'' +
                ", name='" + name + '\'' +
                ", workshop='" + workshop + '\'' +
                ", date=" + date +
                ", machine_type='" + machine_type + '\'' +
                ", spun_yarn_num=" + spun_yarn_num +
                ", winding_speed=" + winding_speed +
                ", spun_yarn_num_setting='" + spun_yarn_num_setting + '\'' +
                ", diameterPlus=" + diameter_plus +
                ", diameterMinus=" + diameter_minus +
                ", thinner_num=" + thinner_num +
                ", thicker_num=" + thicker_num +
                ", diff_length=" + diff_length +
                ", tension=" + tension +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBatch_no() {
        return batch_no;
    }

    public void setBatch_no(String batch_no) {
        this.batch_no = batch_no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getWorkshop() {
        return workshop;
    }

    public void setWorkshop(String workshop) {
        this.workshop = workshop;
    }

    public Timestamp getDate() {
        return date;
    }

    public void setDate(Timestamp date) {
        this.date = date;
    }

    public String getMachine_type() {
        return machine_type;
    }

    public void setMachine_type(String machine_type) {
        this.machine_type = machine_type;
    }

    public Float getSpun_yarn_num() {
        return spun_yarn_num;
    }

    public void setSpun_yarn_num(Float spun_yarn_num) {
        this.spun_yarn_num = spun_yarn_num;
    }

    public Integer getWinding_speed() {
        return winding_speed;
    }

    public void setWinding_speed(Integer winding_speed) {
        this.winding_speed = winding_speed;
    }

    public String getSpun_yarn_num_setting() {
        return spun_yarn_num_setting;
    }

    public void setSpun_yarn_num_setting(String spun_yarn_num_setting) {
        this.spun_yarn_num_setting = spun_yarn_num_setting;
    }

    public Float getDiameter_plus() {
        return diameter_plus;
    }

    public void setDiameter_plus(Float diameter_plus) {
        this.diameter_plus = diameter_plus;
    }

    public Float getDiameter_minus() {
        return diameter_minus;
    }

    public void setDiameter_minus(Float diameter_minus) {
        this.diameter_minus = diameter_minus;
    }

    public Float getThinner_num() {
        return thinner_num;
    }

    public void setThinner_num(Float thinner_num) {
        this.thinner_num = thinner_num;
    }

    public Float getThicker_num() {
        return thicker_num;
    }

    public void setThicker_num(Float thicker_num) {
        this.thicker_num = thicker_num;
    }

    public Integer getDiff_length() {
        return diff_length;
    }

    public void setDiff_length(Integer diff_length) {
        this.diff_length = diff_length;
    }

    public Integer getTension() {
        return tension;
    }

    public void setTension(Integer tension) {
        this.tension = tension;
    }
}
